package br.com.multidental.modelo;

public class Paciente {

	private Long id;
	private String responsavel;
	private String tel_responsavel;
	
	private Pessoa dados;
	
	private Endereco endereco;
	
	private Contato contato;

	public Paciente(Long id, String responsavel, String tel_responsavel,
			Pessoa dados, Endereco endereco, Contato contato) {
		this(responsavel, tel_responsavel, dados, endereco, contato);
		this.id = id;
	}

	public Paciente(String responsavel, String tel_responsavel, Pessoa dados,
			Endereco endereco, Contato contato) {
		this.responsavel = responsavel;
		this.tel_responsavel = tel_responsavel;
		this.dados = dados;
		this.endereco = endereco;
		this.contato = contato;
	}

	public Paciente() {
		super();
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getResponsavel() {
		return responsavel;
	}

	public void setResponsavel(String responsavel) {
		this.responsavel = responsavel;
	}

	public String getTel_responsavel() {
		return tel_responsavel;
	}

	public void setTel_responsavel(String tel_responsavel) {
		this.tel_responsavel = tel_responsavel;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result
				+ ((responsavel == null) ? 0 : responsavel.hashCode());
		result = prime * result
				+ ((tel_responsavel == null) ? 0 : tel_responsavel.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Paciente other = (Paciente) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (responsavel == null) {
			if (other.responsavel != null)
				return false;
		} else if (!responsavel.equals(other.responsavel))
			return false;
		if (tel_responsavel == null) {
			if (other.tel_responsavel != null)
				return false;
		} else if (!tel_responsavel.equals(other.tel_responsavel))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "Paciente [id=" + id + ", responsavel=" + responsavel
				+ ", tel_responsavel=" + tel_responsavel + "]";
	}	
}